/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package openyugioh.frontend;

import java.io.Serializable;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import openyugioh.entity.CardType;
import openyugioh.service.CardTypeService;
import openyugioh.utils.FacesUtil;

/**
 *
 * @author Yeni
 */
@ManagedBean
@ViewScoped
public class Index implements Serializable {
    
    public List<CardType> getCardTypes() {
        CardTypeService service = (CardTypeService)FacesUtil.getSpringBean("cardTypeService");
        return service.getStates();
    }
    
}
